import java.util.Arrays;

public class main {
    public static void main(String[] args) {
        int[] nums =new int[2];
        nums[0] = 5;
        nums[1] = 5;
        System.out.println(minimumOperations(nums));
    }


    public static int minimumOperations(int[] nums) {
        if (nums.length == 1) {
            if (nums[0] == 0) return 0;
            else return 1;
        }
        int res = 0;
        int i = 0;
        Arrays.sort(nums);
        while (nums[i] == 0) i++;
        while (i < nums.length && nums[i] != 0) {

            if (i < nums.length && nums[i] > 0) {
                res++;
                for (int j = i; j < nums.length; j++) {
                    nums[j] -= nums[i];
                }
            }

            i++;
        }

        return res;
    }
}

